package com.example.deliveryserver.dao;


import com.example.deliveryserver.entities.DeliveryAddress;
import com.example.server_engineer.dao.AbstractDao;

import java.util.Optional;

/**
 * @author Administrator
 */
public interface DeliveryAddressDao
        extends AbstractDao<DeliveryAddress, Integer> {

    Optional<DeliveryAddress> findDeliveryAddressById(Integer id);
    Optional<DeliveryAddress> findDeliveryAddressByAddress(String address);

    DeliveryAddress findDeliveryAddressByUserId(String userid);



}
